package com.twoandone.tms.realtime.publisher.service.impl;

import com.twoandone.tms.realtime.publisher.bean.TransportCity;
import com.twoandone.tms.realtime.publisher.mapper.TransportMapper;
import com.twoandone.tms.realtime.publisher.service.TransportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @packageName:com.twoandone.tms.realtime.service.impl
 * @ClassName:TransportServiceImpl
 * @Description:
 * @author:
 * @date 2023/3/12 22:39
 **/
@Service
public class TransportServiceImpl implements TransportService {
    @Autowired
    TransportMapper transportMapper;
    @Override
    public Long getTotalCount(Integer date) {

        return transportMapper.getTotalCount(date);
    }

    @Override
    public Long getProvinceCount(Integer date) {
        return transportMapper.getProvinceCount(date);
    }

    @Override
    public List<TransportCity> getCityDistance(Integer date,Integer limit) {
        return transportMapper.getCityDistance(date,limit);
    }
}
